import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import axios from 'axios';
import router from './router';
// main.js中引入ElementUI
//引入vuex
import Vuex from 'vuex'
//使用插件
Vue.use(Vuex)

import 'element-ui/lib/theme-chalk/index.css';
//Vue.$x=new String()
//import info from  '@/info/OneInfo.vue'
// window.$x = info.user
// console.log(info)
//Vue.prototype.$set(Vue,GLOBAL,info.user)
//console.log(Vue.prototype.GLOBAL.user)
Vue.prototype.$ajax = axios.create({
  baseURL: 'http://localhost:8080/',
  timeout: 1000,
  headers: {'X-Custom-Header': 'foobar'}
})
//Vue.prototype.$ajax = axios;
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false
Vue.use(ElementUI)
new Vue({
  vue: 'vue/dist/vue.esm.js',
  router:router,
  render: h => h(App),
}).$mount('#app')
